package com.example.big_orange2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.big_orange2.entity.rechargeorder;
import com.sun.javafx.collections.MappingChange;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.StatementType;
import org.apache.ibatis.type.JdbcType;

import java.util.Map;


@Mapper
public interface rechargeorderMapper extends BaseMapper<rechargeorder> {
    //注解方式调用过程
    @Select("{call addmoney(#{map.uid,jdbcType=INTEGER,mode=IN},"
            + "#{map.amount,jdbcType=FLOAT,mode=IN})}")
    @Options(statementType = StatementType.CALLABLE)
    void payin(@Param("map") Map<String, Object> map);


//xml配置调用存储过程
//    public String chongzhi(@Param("arg0") int id, @Param("arg1") float money);
}
